package com.dede.net_speed_monitor.config;

/**
 * Created by hsh on 2017/3/24 024 上午 11:20.
 * 默认配置
 */
public class Config {

    private Config() {
    }

    public static final int NOTIFY_ID = 1100;

    /**
     * SharedPreferences Key
     */
    public class SP_Key {
        public static final String SP_NAME_KEY = "user_config";

        public static final String NOTIFY_INTERVAL_KEY = "notify_interval";
        public static final String NOTIFY_NET_MODE_KEY = "notify_mode";//网速显示模式
        public static final String NOTIFY_AUTO_REMOVE_KEY = "notify_auto_remove";//自动移除通知

        public static final String TILE_IS_FIRST_ADD_KEY = "is_first_add";//第一次添加tile
        public static final String TILE_TEXT_COLOR_KEY = "tile_text_color";//tile字体颜色
        public static final String TILE_TEXT_SIZE_KEY = "tile_text_size";//tile字体大小
        public static final String TILE_INTERVAL_KEY = "tile_interval";//tile更新间隔
        public static final String TILE_TEXT_STYLE_KEY = "tile_text_style";//tile字体样式

        public static final String ICON_STATE_KEY = "icon_state";//Z桌面图标显示状态
    }

    /**
     * 默认配置
     */
    public class DefaultValue {
        public static final long NOTIFY_INTERVAL = 500L;//通知更新频率
        public static final int NOTIFY_NET_MODE = NetMode.DOWN;//网速显示模式
        public static final boolean NOTIFY_AUTO_REMOVE = true;//自动移除通知

        public static final boolean TILE_IS_FIRST_ADD = true;//第一次添加tile
        public static final long TILE_INTERVAL = 500L;//tile更新频率
        public static final int TILE_TEXT_COLOR = 0xFFCCCCCC;//字体颜色
        public static final float TILE_TEXT_SIZE = 12f;//字体大小
        public static final int TILE_TEXT_STYLE = TextStyle.NORMAL;//字体样式

        public static final boolean ICON_STATE = true;//桌面图标状态
    }

    public static class NetMode {
        public static final int UP = 1;//上传
        public static final int DOWN = 2;//下载
        public static final int ALL = 3;//上传+下载
    }

    /**
     * 字体样式
     */
    public static class TextStyle {
        public static final int NORMAL = 1;//默认
        public static final int BOLD = 2;//粗体
        public static final int ITALIC = 3;//斜体
        public static final int ALL = 4;//粗体+斜体
    }
}
